package su.kozhevnikov.nookbrary.views;

import su.kozhevnikov.nookbrary.interfaces.IItem;
import su.kozhevnikov.nookbrary.R;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;

public class HeaderView extends ItemView
{

	final int NOTSORTED = 3;
	
	public HeaderView(Context context,int index) 
	{
		super(context, index);
		
	}
	
	public void setItem(IItem i)
	{
		super.setItem(i);
		
		
		
	}
	
	
    protected void onDraw(Canvas canvas) 
    {
    	DrawText(canvas);

    	Bitmap bmp = BitmapFactory.decodeResource(getResources(), R.drawable.book_epub);
    	canvas.drawBitmap(bmp, (XPOS1 - bmp.getWidth()) / 2, (HEIGHT - bmp.getHeight()) / 2,_psepline);
    	//if ( (_item!=null) && (_item.getChildren()!=null) && (!_item.getChildren().isItemsSorted()) )
    	//	canvas.drawBitmap(_pictures[NOTSORTED],XPOS1,(HEIGHT-PICSIZE)/2,_psepline);
    }
	
}
